#include "dvb.h"

#ifndef _DVB_EPG_H
#define _DVB_EPG_H

typedef enum
{
	EIT_PRESENT,
	EIT_FOLLOWING,
}DVB_EIT_T;

//EPG api
extern int DVBEPGGetEitInfo(dvb_service_t* handle, DVB_EIT_T type, dvb_event_t* peitinfo);

extern int DVBEPGGetScheEventCount(dvb_service_t* SerHandle);

extern int DVBEPGGetWeekdayScheEventCount(dvb_service_t* SerHandle, unsigned char weekday);

extern int DVBEPGGetScheInfo(dvb_service_t* SerHandle, int index, dvb_event_t* peitinfo);

extern int DVBEPGGetWeekdayScheInfo(dvb_service_t* SerHandle, int index, unsigned char weekday, dvb_event_t* peitinfo);

extern int DVBEPGGetScheInfoByTime(dvb_service_t* SerHandle, dvb_time_t *pPlayTime, dvb_event_t* peitinfo);

extern int DVBRegisterEitNotify(pEitCallback cb);

extern int DVBEPGStop();

extern int DVBEPGStart();

extern int DVBEPGSetRecvMode(int mode);

extern int DVBRegisterEitNotify(pEitCallback cb);

extern int DVBEPGInit();

extern int DVBEPGDeinit();

#endif//_DVB_EPG_H

